﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="SanPhamUpdate.aspx.cs" Inherits="Admin_SanPhamUpdate" Title="Untitled Page" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
<div class="sidebarmenu">
	<ul id="sidebarmenu1">
		
		<li><a href="SanPhamDanhSach.aspx">Sản Phẩm</a>
			<ul>
			<li><a href="SanPhamDanhSach.aspx">Danh Sách Sản Phẩm</a></li><li><a href="SanPhamThem.aspx">Thêm Sản Phẩm</a></li></ul>
		</li>
		<li><a href="DanhMucDanhSach.aspx">Danh Mục</a>
			<ul>
			<li><a href="DanhMucDanhSach.aspx">Danh Sách Danh Mục</a></li><li><a href="DanhMucThem.aspx">Thêm Danh Mục</a></li></ul>
		</li>
		<li><a href="DoanhNghiepDanhSach.aspx">Doanh Nghiệp</a>
			<ul>
			<li><a href="DoanhNghiepDanhSach.aspx">Danh Sách Doanh Nghiệp</a></li><li><a href="DoanhNghiepThem.aspx">Thêm Doanh Nghiệp</a></li></ul>
		</li>
		<li><a href="NhaSanXuatDanhSach.aspx">Nhà Sản Xuất</a>
			<ul>
			<li><a href="NhaSanXuatDanhSach.aspx">Danh Sách Nhà SX</a></li><li><a href="NhaSanXuatThem.aspx">Thêm Nhà SX</a></li></ul>
		</li>
		<li><a href="DiaDiemDanhSach.aspx">Địa Điểm</a>
			<ul>
			<li><a href="DiaDiemDanhSach.aspx">Danh Sách Địa Diểm</a></li><li><a href="DiaDiemThem.aspx">Thêm Địa Điểm</a></li></ul>
		</li>
		<li><a href="TinhTrangDanhSach.aspx">Tình Trạng</a>
			<ul>
			<li><a href="TinhTrangDanhSach.aspx">Danh Sách Tình Trạng</a></li><li><a href="TinhTrangThem.aspx">Thêm Tình Trạng</a></li></ul>
		</li>
		<li><a href="PhuongThucThanhToanDanhSach.aspx">Thanh Toán</a>
			<ul>
			<li><a href="PhuongThucThanhToanDanhSach.aspx">Danh Sách Thanh Toán</a></li><li><a href="PhuongThucThanhToanThem.aspx">Thêm Thanh Toán</a></li></ul>
		</li>
		
	</ul>
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
<div>
        <div class="title" style="text-align: center">
            <span style="color: #ff0033; font-size: 14pt;"><strong><em>Sửa Sản Phẩm </em></strong></span>
        </div>                  
        <div>
          <table width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#cccccc"> 
                 <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Mã Sản Phẩm</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="false" ID="txt_masanpham" runat="server"></asp:TextBox></td>
                </tr> 
                
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Tên Sản Phẩm</td>
                    <td style="width:559px; height: 30px; text-align: left;">
                    <asp:TextBox Enabled="true" ID="txt_tensanpham" runat="server"></asp:TextBox>
                    </td>    
                </tr>
               <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Danh Mục</td>
                    <td style="width:559px; height: 30px; text-align: left;">
                        <asp:DropDownList ID="ddl_danhmuc" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Doanh Nghiệp</td>
                    <td style="width:559px; height: 30px; text-align: left;">
                        <asp:DropDownList ID="ddl_doanhnghiep" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Nhà Sản Xuất</td>
                    <td style="width:559px; height: 30px; text-align: left;">
                        <asp:DropDownList ID="ddl_nhasanxuat" runat="server">
                        </asp:DropDownList></td>
                </tr>
                 <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Giá Gốc</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_giagoc" runat="server"></asp:TextBox></td>
                </tr>
                 <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Giá Bán</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_giaban" runat="server"></asp:TextBox></td>
                </tr> 
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Ngày Bắt Đầu</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_ngaybatdau" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Ngày Hết Hạn</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_ngayhethan" runat="server"></asp:TextBox></td>
                </tr> 
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Số Lượng Bán</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_soluongban" runat="server"></asp:TextBox></td>
                </tr> 
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Số Lượng Tối Đa</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_soluongtoida" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Quy Định Sử Dụng</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_quydinhsudung" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Chiết Khấu</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_chietkhau" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Tình Trạng </td>
                    <td style="width:559px; height: 30px; text-align: left;">
                        <asp:DropDownList ID="ddl_tinhtrang" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Hình Minh Họa </td>
                    <td style="width:559px; height: 30px; text-align: left;">
                    <div class="addnewrow" style="display:table-cell; width:25%;float:right;">
               
                 <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click" ForeColor="Red" Font-Bold="True">Xóa</asp:LinkButton>
            </div> 
         <div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="1">
                <thead>
                    <tr class="listtableheader">
                        <th>Mã Hình Ảnh</th>
                        <th>Hình Ảnh</th>
                       
                        <th>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td><asp:Literal ID="lit_MaHA" runat="server"></asp:Literal></td>
                <td><asp:Image ID="hinhanh" runat="server"/></td>
                  <asp:HiddenField ID="hf_tenhinh" runat="server" />
                
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id"  runat="server" />
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater>  
        </div>
        <div style="width:100%;"> 
            <div style="float:left;">               
            
            </div>
            <cc1:PagerV2_8 ID="Pager" runat="server" OnCommand="Pager_Command"/>
        </div>
                        <asp:FileUpload ID="fu_up_hinh" runat="server" class="multi"/></td>
                </tr>        
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Mô Tả</td>
                    <td style="width:559px; height: 30px; text-align: left;">
                        <FTB:FreeTextBox ID="ftb_mota" runat="server">
                        </FTB:FreeTextBox>
                    </td>
                </tr> 
                 <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Bản Đồ</td>
                    <td style="width:559px; height: 30px; text-align: left;">
                        <asp:DropDownList ID="ddl_bando" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr> 
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Phương Thức Thanh Toán</td>
                    <td style="width:559px; height: 30px; text-align: left;">
                        <asp:DropDownList ID="ddl_phuongthucthanhtoan" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr> 
                <tr>
                    <td style="width:250px; height: 30px; text-align: left;">Lời Giới Thiệu</td>
                    <td style="width:559px; height: 30px; text-align: left;"><asp:TextBox Enabled="true" ID="txt_loigioithieu" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="2" style="height: 30px; text-align: center">
                        <asp:Button ID="btn_sua" runat="server" Text="Cập Nhật Sản Phẩm" OnClick="btn_sua_Click"/></td>
                </tr>            
            </table>
        </div>
 </div>
 </div>
</asp:Content>

